<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>登录页面</title>
    <style>
    
.body {
    font-family: Arial, sans-serif;
    background-image: url('https://p2.itc.cn/q_70/images03/20210629/cbad2486b5034916bab994855c724980.jpeg');
    background-size: cover;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.8); 
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); 
    width: 350px; 
    position: relative; 
}

.login-container::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url('https://tse3-mm.cn.bing.net/th/id/OIP-C.bKMTf35YSfxYlkPc5Uch4wHaFj?rs=1&pid=ImgDetMain'); 
    background-size: cover;
    opacity: 0.2; 
    border-radius: 15px; 
    z-index: -1; 
}

h2 {
    text-align: center;
    color: #333; 
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.5); 
    margin-bottom: 20px;
    font-weight: bold; 
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #666; 
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 6px; 
    border-radius: 7px; 
    border: 2px solid #ccc; 
    transition: border-color 0.3s ease; 
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #4CAF50; 
}

button[type="submit"] {
    width: 100%;
    padding: 6px; 
    border-radius: 7px; 
    border: 2px solid #ccc; 
    transition: border-color 0.3s ease; 
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #4CAF50; 
}

button[type="submit"] {
    width: 100%;
    padding: 18px; 
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 7px; 
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #45a049;
}

@keyframes login-shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}
.login-container.shake {
    animation: login-shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate(0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}
      
        label {
            display: inline-block;
            width: 100px; 
        }
    </style>
</head>
<body>
    <hr>
   
   
<div class="login-container">
    <h2>酒店预定登录</h2>
    <form action="customer/check.jsp" method="post">
        <div class="form-group">
            <label for="userid">用户ID:</label>
            <div>
                <input type="text" id="userid" name="userid" required><br>
            </div>
            <div class="form-group">
                 <label for="pwd">密码:</label>
                 <input type="password" id="pwd" name="pwd" required><br> 
            </div>
        </div>
        <button type="submit" name="btn" value="登录">登录</button>
    </form>
</div>  
<script>
    var userRadio = document.getElementById('user');
    var adminRadio = document.getElementById('admin');


    userRadio.addEventListener('change', function() {
        if (this.checked) {
            alert('hotel.jsp');
      
        }
    });

    adminRadio.addEventListener('change', function() {
        if (this.checked) {
            
            alert('');
        }
    });
</script>
</body>
</html>
